<template>
  <div class="at-collapse-item-content" v-on:click="href(contenthref,content)">
     <slot></slot>
  </div>
</template>
<script>
/**
 *@author 付雪双
 */
  import Emitter from '../../common/mixins/emitter';
  
  export default {
    name: 'at-collapse-item-content',
    componentName: 'at-collapse-item-content',
    mixins: [Emitter],
    data() {
      return {
      };
    },
    props: {
      /**
       * @type {String} - url地址
       */
      contenthref:String,
      /**
       * @type {Object} - 参数
       */
      content:Object
    },
    methods:{
      /**
       *@param {string} href - url地址
       *@param {Object} content - 参数
       *@description 当前组件跳转事件
       */
      href(href,content){
        this.$router.push({path:href, query:content});
      }
    }
  };
</script>